<!DOCTYPE html>
<html>
<head>

<title>华顺员工信息发送管理</title>
#parse("sys/header.html")
	<link rel="stylesheet" href="${rc.contextPath}/statics/css/bootstrap-select.min.css">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			#if($shiro.hasPermission("empmsgsend:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("empmsgsend:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("empmsgsend:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
									<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="empMsgSend.empName" placeholder="姓名" @click="popPage" readonly="readonly"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部门名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="empMsgSend.departmentName" placeholder="部门名称" readonly="readonly"/>
			    </div>
			</div>
									<!--<div class="form-group">-->
				<!--<div class="col-sm-2 control-label">接收人id,逗号隔开</div>-->
				<!--<div class="col-sm-10">-->
					<!--<input type="text" class="form-control" v-model="empMsgSend.receiver" placeholder="接收人id,逗号隔开"/>-->
			<!--</div>-->
			<!--</div>-->
					<div class="form-group">
						<div class="col-sm-2 control-label">接收人</div>
						<!--<label class="col-sm-3 control-label">客资类型：</label>-->
						<div class="col-sm-4">
							<select class="selectpicker show-tick form-control" v-model="empMsgSend.receivers" multiple data-live-search="false"> <!---->
								<option v-for="emp in emps" :value="emp.id">{{emp.name}}</option>
							</select>
						</div>
					</div>

									<div class="form-group">
			   	<div class="col-sm-2 control-label">主题</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="empMsgSend.title" placeholder="主题"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">内容</div>
			   	<div class="col-sm-10">
			      <textarea style="resize:none" class="form-control" v-model="empMsgSend.content" cols="55" rows="10"></textarea>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">附件</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="empMsgSend.uploadFilePath" placeholder="点击上传文件" readonly="readonly"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" id="createDate" v-model="empMsgSend.createDate" placeholder="创建时间" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="readonly"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>

<script src="${rc.contextPath}/statics/libs/bootstrap-select.min.js"></script>
<script src="${rc.contextPath}/js/hr/empmsgsend.js?_${date.systemTime}"></script>


</body>
</html>